<?php
if (isset($_REQUEST['email']))
//if "email" is filled out, send email
  {
          
  //send email
  $email = $_REQUEST['email'] ;
  $subject = $_REQUEST['subject'] ;
  $message = $_REQUEST['message'] ;
  
  mail( "krishna.udaya@gmail.com,chandanrv@gmail.com,manju.rvce12@gmail.com", "Subject: $subject",
  $message, "From: $email" );
  echo "Thank you for using our mail form";
  }
else
//if "email" is not filled out, display the form
  {
	  echo "<div id='contatusForm'>";
  	  echo "<form method='post' action='content/pages/contactus.php' target=\"_blank\">";
	  echo gettext("EmailID").": <input name='email' type='email' ng:required/><br />";
	  echo gettext("Subject").": <input name='subject' type='text' /><br />";
	  echo gettext("Message").":<br />
	  <textarea name='message' rows='15' cols='40'>
	  </textarea><br />
	  <input type='submit' />
	  </form>";
	  echo "</div>";
  }
?>
